package org.lzy.shop.response

data class ConifimOrderResponse(
    val defaultAddress: DefaultAddress,
    val userCoupon: MutableList<UserCoupon>
)

data class DefaultAddress(
    val address: String,
    val city: String,
    val contact: String,
    val createTime: String,
    val district: String,
    val id: Int,
    val isDefault: Boolean,
    val phone: String,
    val province: String,
    val updateTime: String,
    val userId: Int
)

data class UserCoupon(
    val amount: Int,
    val condition: String,
    val `condition$1`: Condition1,
    val create_time: String,

    val description: String,
    val end_time: String,
    val id: Int,
    val num: Int,
    val received_num: Int,
    val start_time: String,
    /**
     * 状态 0-禁用 1-启用
     */
    val status: Int,
    /**
     * 标题
     */
    val title: String,
    /**
     * 类型 0-满减
     */
    val type: Int,
    val update_time: String,
    /**
     * 使用状态 0-未使用 1-已使用 2-已过期
     * 注意：此字段仅在"我的优惠券"接口中返回，领取优惠券时不包含此字段
     */
    val useStatus: Int
)

data class Condition1(
    val fullAmount: String
)